<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;

class Tags extends Model
{
    use HasFactory;
    protected $fillable=[
      'name'
    ];
    protected $hidden=[
        'created_at',
        'updated_at'
    ];
    public function articles(){
        return $this->belongsToMany(Articles::class);
    }
}
